package UMC.Web.UI;


import UMC.Web.UICell;
import UMC.Web.UIClick;
import UMC.Web.WebMeta;

public class UIImageTextDesc extends UICell {
    public UIImageTextDesc(String src, String title, String desc, String top) {
        this.data = new WebMeta().put("desc", desc, "title", title, "top", top, "src", src);

    }

    public UIImageTextDesc(String src, String title, String desc) {
        this.data = new WebMeta().put("desc", desc, "title", title, "src", src);

    }

    public UIImageTextDesc click(UIClick click) {

        this.data.put("click", click);
        return this;
    }

    public UIImageTextDesc(WebMeta desc) {
        this.data = desc;

    }

    public UIImageTextDesc desc(String desc) {
        this.format("desc", desc);
        return this;
    }

    public UIImageTextDesc tag(String tag) {
        this.format("tag", tag);
        return this;
    }

    public UIImageTextDesc top(String top) {
        this.format("top", top);
        return this;
    }

    public UIImageTextDesc right(String right) {
        this.format("right", right);
        return this;
    }

    public UIImageTextDesc title(String title) {
        this.format("title", title);
        return this;
    }

    WebMeta data;

    @Override
    public WebMeta data() {
        return data;
    }

    @Override
    public String type() {
        return "ImageTextDesc";
    }
}